Ana içeriğe geç

Snapshot

# install lz4
apt update
apt install lz4 -y
systemctl stop alignedlayerd

cp $HOME/.alignedlayer/data/priv_validator_state.json $HOME/.alignedlayer/priv_validator_state.json.backup

alignedlayerd tendermint unsafe-reset-all --home $HOME/.alignedlayer --keep-addr-book
SNAP_NAME=$(curl -s https://testnet.anatolianteam.com/aligned/ | egrep -o ">alignedlayer.*\.tar.lz4" | tr -d ">")
curl -L https://testnet.anatolianteam.com/aligned/${SNAP_NAME} | tar -I lz4 -xf - -C $HOME/.alignedlayer

mv $HOME/.alignedlayer/priv_validator_state.json.backup $HOME/.alignedlayer/data/priv_validator_state.json

systemctl restart alignedlayerd && journalctl -u alignedlayerd -f -o cat